﻿using ApeVolo.Common.AttributeExt;
using ApeVolo.Entity.Do.Email;

namespace ApeVolo.IBusiness.Dto.Email
{
    [AutoMapping(typeof(EmailAccount), typeof(EmailAccountDto))]
    public class EmailAccountDto : BaseEntityDto
    {
        /// <summary>
        ///电子邮件地址
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 电子邮件显示名称
        /// </summary>
        public string DisplayName { get; set; }

        /// <summary>
        /// 电子邮件主机
        /// </summary>
        public string Host { get; set; }

        /// <summary>
        /// 电子邮件端口
        /// </summary>
        public int Port { get; set; }

        /// <summary>
        /// 电子邮件用户名
        /// </summary>
        public string Username { get; set; }

        /// <summary>
        /// 电子邮件密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 是否SSL
        /// </summary>
        public bool EnableSsl { get; set; }

        /// <summary>
        /// 是否与请求一起发送应用程序的默认系统凭据
        /// </summary>
        public bool UseDefaultCredentials { get; set; }
    }
}
